package com.example.component.b_fragment.dialog

import android.app.AlertDialog
import android.app.Dialog
import android.os.Bundle
import androidx.fragment.app.DialogFragment

class BFragment : DialogFragment() {
    /**
     * 创建view
     * 支持自定义view
     */
    override fun onCreateDialog(savedInstanceState: Bundle?): Dialog =
        AlertDialog.Builder(requireContext())
            .setTitle("dialog fragment")
            .setPositiveButton("yes") { _, _ -> }
            .create()

    companion object {
        const val TAG = "BFragment"
    }
}